package molehillempirecalculator.utils;

/**
 * Class Item
 * @author Praiet
 */
public class Item {

    /**
     * The id of the item.
     */
    int itemId;
    /**
     * The name of the item.
     */
    String itemName;
    /**
     * The quantity of items.
     */
    int itemQty;
    /**
     * The shop price.
     */
    float itemShopPrice;
    /**
     * The number of fields required to plant.
     */
    int itemRequiredFields;
    /**
     * The number of items harvested.
     */
    int itemProduction;
    /**
     * The prices of market (other players).
     */
    float itemMarketPrice;
    /**
     * Indicates if the line is commented or not.
     */
    boolean comment;

    /**
     * Constructor.
     * @param itemName - The name of the item.
     * @param itemShopPrice - The shop price in the market.
     * @param itemRequiredFields - The required fields to plant.
     * @param itemProduction - The production per harvest.
     * @param itemMarketPrice - The item market price (player vendors).
     */
    public Item(int itemId, String itemName, float itemShopPrice, int itemRequiredFields, int itemProduction, float itemMarketPrice) {
        this.itemId = itemId;
        this.itemName = itemName;
        this.itemShopPrice = itemShopPrice;
        this.itemRequiredFields = itemRequiredFields;
        this.itemProduction = itemProduction;
        this.itemMarketPrice = itemMarketPrice;
        this.itemQty = 0;
        this.comment = false;
    }

    /**
     * Constructor.
     * @param itemName
     */
    public Item(int itemId, String itemName) {
        this.itemId = itemId;
        this.itemName = itemName;
        this.comment = true;
    }

    /**
     * Getter.
     * @return
     */
    public int getItemId() {
        return itemId;
    }

    /**
     * Setter.
     * @param itemId
     */
    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    /**
     * Getter.
     * @return
     */
    public float getItemMarketPrice() {
        return itemMarketPrice;
    }

    /**
     * Setter.
     * @param itemMarketPrice
     */
    public void setItemMarketPrice(float itemMarketPrice) {
        this.itemMarketPrice = itemMarketPrice;
    }

    /**
     * Getter.
     * @return
     */
    public int getItemProduction() {
        return itemProduction;
    }

    /**
     * Setter.
     * @param itemProduction
     */
    public void setItemProduction(int itemProduction) {
        this.itemProduction = itemProduction;
    }

    /**
     * Getter.
     * @return
     */
    public int getItemRequiredFields() {
        return itemRequiredFields;
    }

    /**
     * Setter.
     * @param itemRequiredFields
     */
    public void setItemRequiredFields(int itemRequiredFields) {
        this.itemRequiredFields = itemRequiredFields;
    }

    /**
     * Getter.
     * @return
     */
    public float getItemShopPrice() {
        return itemShopPrice;
    }

    /**
     * Setter.
     * @param itemShopPrice
     */
    public void setItemShopPrice(float itemShopPrice) {
        this.itemShopPrice = itemShopPrice;
    }

    /**
     * Getter.
     * @return
     */
    public String getItemName() {
        return itemName;
    }

    /**
     * Setter.
     * @param itemName
     */
    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    /**
     * Getter.
     * @return
     */
    public int getItemQty() {
        return itemQty;
    }

    /**
     * Setter.
     * @param itemQty
     */
    public void setItemQty(int itemQty) {
        this.itemQty = itemQty;
    }

    public boolean isComment() {
        return comment;
    }
}
